<template>
  <van-empty :image="img" :description="title">
    <slot></slot>
  </van-empty>
</template>

<script>
import { Empty } from 'vant';
export default {
  components: {
    [Empty.name]: Empty
  },
  props: {
    title: {
      type: String,
      default: '暂无数据'
    },
    img: {
      type: String,
      default: 'http://tyqf-bucket.oss-cn-beijing.aliyuncs.com/other/emptydata.png'
    }
  }
};
</script>

<style lang="scss" scoped>
/deep/ .van-empty__image {
  width: 497px;
  height: 310px;
  margin-top: 100px;
}
</style>
